//
//  FunctionTableViewCell.m
//  
//
//  Created by qkong on 15/6/15.
//
//

#import "FunctionTableViewCell.h"

@implementation FunctionTableViewCell

- (void)awakeFromNib {
    // Initialization code
    UIView* separatorLineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 1)];/// change size as you need.
    separatorLineView.backgroundColor = [UIColor colorWithRed:0.122 green:0.125 blue:0.122 alpha:1.000];// you can also put image here
    [self.contentView addSubview:separatorLineView];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellWithImageName:(NSString *)imageName andFunctionName:(NSString *)functionName{
    self.functionImage.image = [UIImage imageNamed:imageName];
    self.functionName.text = functionName;
}

- (void)addSingleLineToTop{
    UIView* separatorLineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 1)];/// change size as you need.
    separatorLineView.backgroundColor = [UIColor colorWithRed:0.122 green:0.125 blue:0.122 alpha:1.000];// you can also put image here
    [self.contentView addSubview:separatorLineView];
}

- (void)addSingleLineToBottom{
    UIView* separatorLineBottomView = [[UIView alloc] initWithFrame:CGRectMake(0, self.frame.size.height-1, 320, 1)];/// change size as you need.
    separatorLineBottomView.backgroundColor = [UIColor colorWithRed:0.122 green:0.125 blue:0.122 alpha:1.000];// you can also put image here
    [self.contentView addSubview:separatorLineBottomView];
}


@end
